#include "cProjectile.h"

cProjectile::cProjectile(Vector3D position, int type, bool bIsAlive)
{
	m_position = position;
	m_velocity = Vector3D();
	m_acceleration = Vector3D();

	m_type = type;
	
	m_bIsAlive = bIsAlive;
}

cProjectile::~cProjectile()
{
}

//Projectiles time to live will change depending on the ability
void cProjectile::updateProjectile(float dt)
{ 
	//Check to see if the time has expired
	if(m_type == ARCANE_BOLT) 
	{
		//Check to see if the projectile is still active
		if(m_projectileLife > DEFAULT_LIFETIME)
			return;
	}

	else if(m_type == IGNIS)
	{
		//Check to see if the projectile is still active
		if(m_projectileLife > DEFAULT_LIFETIME)
			return;
	}

	else if(m_type == VOCATE)
	{
		//Check to see if the projectile is still active
		if(m_projectileLife > DEFAULT_LIFETIME)
			return;
	}

	else
	{
		return;
		//do nothing
	}

	//Update the position of the projectile

	//Retrieve the orientation of the player

	//Set the speed to the velocity of the 
}